package com.zbb.order.feignclient;


import com.zbb.base.model.Result;
import com.zbb.order.model.po.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @FeignClient表明当前类是一个Feign客户端,value指定客户端的服务名称
 */
@FeignClient(value = "user-api")
public interface UserServiceClient {
    @GetMapping("/user/userInfo/{userId}")
    User querytUser(@PathVariable("userId") String userId);


    @GetMapping("/user/schoolInfo/{schoolId}")
    String selectSchoolnfo(@PathVariable("schoolId") String schoolId);

    @PostMapping("/user/updateUser")
    User updateUser(@RequestBody User user);

}